import request from '@/utils/request'

// 查询门禁入侵警告列表
export function listMjGuardAlarm(query) {
  return request({
    url: '/energy/mjGuardAlarm/list',
    method: 'get',
    params: query
  })
}

// 查询门禁入侵警告详细
export function getMjGuardAlarm(id) {
  return request({
    url: '/energy/mjGuardAlarm/' + id,
    method: 'get'
  })
}

// 新增门禁入侵警告
export function addMjGuardAlarm(data) {
  return request({
    url: '/energy/mjGuardAlarm',
    method: 'post',
    data: data
  })
}

// 修改门禁入侵警告
export function updateMjGuardAlarm(data) {
  return request({
    url: '/energy/mjGuardAlarm',
    method: 'put',
    data: data
  })
}

// 删除门禁入侵警告
export function delMjGuardAlarm(id) {
  return request({
    url: '/energy/mjGuardAlarm/' + id,
    method: 'delete'
  })
}
